package com.qiaofang.collectmanage.stub.facade;

import com.qiaofang.collectmanage.stub.request.SecretaryRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jingfa.sun
 */
@FeignClient(name = "collectmanage",url="${feign.url.collectmanage}")
@RequestMapping("/secretary")
@Api(tags = "secretary", value = "小蜜书接口集合")
public interface SecretaryFacade {

    /**
     * 插入信息
     * @param secretaryRequest
     */
    @RequestMapping(value = "/crawlerSecretaryHouseInfo", method = RequestMethod.POST)
    @ApiOperation(value = "爬取小蜜书", notes = "爬取小蜜书")
    @ApiImplicitParams({@ApiImplicitParam(name = "request", value = "请求参数", dataType = "SecretaryRequest") })
    void crawlerSecretaryHouseInfo(SecretaryRequest secretaryRequest);
}
